package com.eamois.dao.manual;

import java.util.Collection;

import com.eamois.dao.BaseDao;
import com.eamois.domain.manual.Diagram;
import com.eamois.domain.manual.DiagramType;
import com.eamois.pdmutil.pdmView.DocumentView;
import com.mit.plm.view.documentmanage.ViewDocument;

public interface DiagramDao extends BaseDao<Diagram>{
	Collection<Diagram> findDiagramByType(DiagramType type);
	
	Diagram findDiagramByCodeAndName(String code,String name);
	
	DocumentView findDiagramByDocIdAndDocVer(String cdocumentid,String cdocumentver);
	
	ViewDocument getDocumentByIdAndVer2(String code,String belongcode,String cdocumentver);
	
	Diagram findDiagramByIdAndVer(String cdocumentid,String cdocumentver);
	
	boolean saveDoc_026(String cdocumentid,String cdocumentver);
	
	boolean updateDoc_026(String cdocumentid,String cdocumentver,String originalId,String originalVer);
	
	Collection<Diagram> findDiagramByBom(String bomName,String bomVar);
	
	boolean findDiagram(String id);
	
}
